package com.brh.druidtest.controller;

import com.brh.druidtest.pojo.UserCopy;
import com.brh.druidtest.service.UserCopyService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用户接口
 *
 * @author BRH
 */
@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/userCopy")
public class UserCopyController {

    private final UserCopyService userCopyService;

    /**
     * 查询用户信息
     */
    @GetMapping("/list")
    public List<UserCopy> list() {
        return userCopyService.list();
    }

}
